<?php
	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Paysdesc extends Baseobj{

		var $id;
		var $pays;
		var $lang;
		var $titre;
		var $chapo;
		var $description;
		const TABLE="paysdesc";
		var $table=self::TABLE;

		var $bddvars = array("id", "pays", "lang", "titre", "chapo", "description");

		function __construct($pays = 0, $lang = 1){
			parent::__construct();

			if($pays > 0)
 			  $this->charger($pays, $lang);
		}

		function charger($pays, $lang=1){
			return $this->getVars("select * from $this->table where pays=\"$pays\" and lang=\"$lang\"");
		}

		function charger_id($id, $lang=1){
			return $this->getVars("select * from $this->table where id=\"$id\" and lang=\"$lang\"");
		}
	}

?>